package rtlmmap

type RtlInt8 struct{}

func (RtlInt8) ToIQ(rfd []byte) []complex128 {
	l := len(rfd) / 2
	r := make([]complex128, l)
	for i := 0; i < l; i++ {
		r[i] = complex(float64(int8(rfd[i*2]))/127.5, float64(int8(rfd[i*2+1]))/127.5)
	}
	return r
}
func (RtlInt8) WordLength() uint64 { return 2 }
